﻿using System.Web.Mvc;
using Reece.Open.Mvc.Common;

namespace Reece.Open.Mvc.Three.Extenders
{
    public static class Forms
    {
        public static Form BeginRedirectForm(this HtmlHelper html, string actionName, string controllerName, string serverBase, FormMethod method)
        {
            return new Form(html.ViewContext, actionName, controllerName, serverBase, method);
        }

        public static Form BeginRedirectForm<T>(this HtmlHelper<T> html, string actionName, string controllerName, string serverBase, FormMethod method)
        {
            return new Form(html.ViewContext, actionName, controllerName, serverBase, method);
        }
    }
}
